package com.cmccgz.udacs_landlord_webapp.main.peoplemanager.contract;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.CardDetail;
import com.cmccgz.udacs_landlord_webapp.bean.CardMsg;

import java.util.List;

/**
 * @author Denis
 * @ClassName: DelayContract
 * @Description: 暂停租客房卡
 * @date 2017/6/7 11:16
 */

public interface StopContract {
    interface Presenter extends BasePresenter {
        /**
         * 暂停卡片
         * @param user_mobile
         * @param house_id
         * @param cards
         */
        void stopCard(String user_mobile, String house_id, List<CardDetail>cards);
        /**
         *  获取已停止的卡片信息
         * @param user_mobile
         * @param house_id
         */
        void getActiveCardMsg(String user_mobile, String house_id);
    }

    interface View extends BaseView<Presenter> {
        /**
         * 暂停卡片成功
         */
        void stopCardSuccess();

        /**
         * 暂停卡片失败
         * @param msg
         */
        void stopCardFail(String msg);
        /**
         * 获取卡片信息成功
         * @param cardMsg
         */
        void getCardMsgSuccess(CardMsg cardMsg);

        /**
         * 获取卡片信息失败
         * @param msg
         */
        void getCardMsgFail(String msg);
    }
}
